﻿export default {
  mode: "hash",
  showSpinner: true,
  routes: [
    {
      path: "/warn/:code",
      name: "warn",
      component: () => import("@/views/Warn.vue"),
      meta: { title: "错误提示", publicAccess: true, allowAnonymous: true },
    },
    {
      path: "/index",
      name: "index",
      component: () => import("@/views/Index.vue"),
      meta: { title: "", publicAccess: true, },
    },
    {
      path: "",
      name: "root",
      redirect: "/index"
    },
    {
      path: "/envConfig",
      name: "envConfigRoot",
      component: () => import("@/views/envConfig/Index.vue"),
      meta: { title: "系统选项" },
    },
    {
      path: "/envConfig/index",
      name: "envConfig",
      component: () => import("@/views/envConfig/Index.vue"),
      meta: { title: "系统选项" },
    },
    {
      path: "/user",
      name: "userRoot",
      component: () => import("@/views/user/Index.vue"),
      meta: { title: "用户管理" }
    },
    {
      path: "/user/index",
      name: "user",
      component: () => import("@/views/user/Index.vue"),
      meta: { title: "用户管理" }
    },
    {
      path: "/role",
      name: "roleRoot",
      component: () => import("@/views/role/Index.vue"),
      meta: { title: "角色管理" }
    },
    {
      path: "/role/index",
      name: "role",
      component: () => import("@/views/role/Index.vue"),
      meta: { title: "角色管理" }
    },
    {
      path: "/role/item/:id",
      name: "roleitem",
      component: () => import("@/views/role/Item.vue"),
      meta: { title: "角色权限" }
    },
    {
      path: "/app",
      name: "appRoot",
      component: () => import("@/views/app/Index.vue"),
      meta: { title: "应用管理" }
    },
    {
      path: "/app/index",
      name: "app",
      component: () => import("@/views/app/Index.vue"),
      meta: { title: "应用管理" }
    },
    {
      path: "/app/item/:id",
      name: "appitem",
      component: () => import("@/views/app/Item.vue"),
      meta: { title: "应用模块" }
    },
    {
      path: "/org",
      name: "orgRoot",
      component: () => import("@/views/org/Index.vue"),
      meta: { title: "组织机构" }
    },
    {
      path: "/org/index",
      name: "org",
      component: () => import("@/views/org/Index.vue"),
      meta: { title: "组织机构" }
    },
    {
      path: "/org/item/:id",
      name: "orgitem",
      component: () => import("@/views/org/Item.vue"),
      meta: { title: "部门管理" }
    },
    {
      path: "/menu",
      name: "menuRoot",
      component: () => import("@/views/menu/Index.vue"),
      meta: { title: "菜单管理" }
    },
    {
      path: "/menu/index",
      name: "menu",
      component: () => import("@/views/menu/Index.vue"),
      meta: { title: "菜单管理" }
    },
    {
      path: "/dictionary",
      name: "dictionaryRoot",
      component: () => import("@/views/dictionary/Index.vue"),
      meta: { title: "字典管理" }
    },
    {
      path: "/dictionary/index",
      name: "dictionary",
      component: () => import("@/views/dictionary/Index.vue"),
      meta: { title: "字典管理" }
    },
    {
      path: "/filesys",
      name: "filesysRoot",
      component: () => import("@/views/fileSys/Index.vue"),
      meta: { title: "文件管理" }
    },
    {
      path: "/filesys/index",
      name: "filesys",
      component: () => import("@/views/fileSys/Index.vue"),
      meta: { title: "文件管理" }
    },
    {
      path: "/online",
      name: "online",
      component: () => import("@/views/online/Index.vue"),
      meta: { title: "在线用户" }
    },
    {
      path: "/online/token",
      name: "onlineAuthToken",
      component: () => import("@/views/online/AuthToken.vue"),
      meta: { title: "授权令牌" }
    },
    {
      path: "/online/code",
      name: "onlineAuthCode",
      component: () => import("@/views/online/AuthCode.vue"),
      meta: { title: "授权码" }
    },
    {
      path: "/signinLog",
      name: "signinLog",
      component: () => import("@/views/signinLog/Index.vue"),
      meta: { title: "登录日志" }
    },
    {
      path: "/infoLog/item/:id",
      name: "infoLogItem",
      component: () => import("@/views/infoLog/Item.vue"),
      meta: { title: "系统日志查看" }
    },
    {
      path: "/infoLog",
      name: "infoLog",
      component: () => import("@/views/infoLog/Index.vue"),
      meta: { title: "系统日志" }
    },
    {
      path: "/errorLog/item/:id",
      name: "errorLogItem",
      component: () => import("@/views/errorLog/Item.vue"),
      meta: { title: "系统异常查看" }
    },
    {
      path: "/errorLog",
      name: "errorLog",
      component: () => import("@/views/errorLog/Index.vue"),
      meta: { title: "系统异常" }
    },
    {
      path: "/userMessage/item/:id",
      name: "userMessageItem",
      component: () => import("@/views/userMessage/Item.vue"),
      meta: { title: "消息查看" }
    },
    {
      path: "/userMessage",
      name: "userMessageList",
      component: () => import("@/views/userMessage/Index.vue"),
      meta: { title: "我的消息" }
    },
    {
      path: "/widget",
      name: "widget",
      component: () => import("@/views/widget/Index.vue"),
      meta: { title: "小工具管理" }
    },
    {
      path: "/widget/index",
      name: "widgetRoot",
      component: () => import("@/views/widget/Index.vue"),
      meta: { title: "小工具管理" }
    },
    {
      path: "/widget/item/:name",
      name: "widgetItem",
      component: () => import("@/views/widget/Item.vue"),
      meta: { title: "定义小工具" }
    },
    {
      path: "/dispatcher/template",
      name: "template",
      component: () => import("@/views/dispatcher/template/Index.vue"),
      meta: { title: "消息模板管理" }
    },
    {
      path: "/dispatcher/template/index",
      name: "templateRoot",
      component: () => import("@/views/dispatcher/template/Index.vue"),
      meta: { title: "消息模板管理" }
    },
    {
      path: "/dispatcher/template/item/:name",
      name: "templateItem",
      component: () => import("@/views/dispatcher/template/Item.vue"),
      meta: { title: "定义消息模板" }
    },
    {
      path: "/dispatcher/mail",
      name: "mail",
      component: () => import("@/views/dispatcher/mail/Index.vue"),
      meta: { title: "邮件消息列表" }
    },
    {
      path: "/dispatcher/mail/index",
      name: "mailRoot",
      component: () => import("@/views/dispatcher/mail/Index.vue"),
      meta: { title: "邮件消息列表" }
    },
    {
      path: "/dispatcher/mail/sent/:id",
      name: "mailSentItem",
      component: () => import("@/views/dispatcher/mail/SentItem.vue"),
      meta: { title: "邮件消息" }
    },
    {
      path: "/dispatcher/mail/fail/:id",
      name: "mailFailItem",
      component: () => import("@/views/dispatcher/mail/FailItem.vue"),
      meta: { title: "邮件消息" }
    },
    {
      path: "/dispatcher/message",
      name: "message",
      component: () => import("@/views/dispatcher/message/Index.vue"),
      meta: { title: "消息列表" }
    },
    {
      path: "/dispatcher/message/index",
      name: "messageRoot",
      component: () => import("@/views/dispatcher/message/Index.vue"),
      meta: { title: "消息列表" }
    },
    {
      path: "/dispatcher/message/item/:id",
      name: "messageItem",
      component: () => import("@/views/dispatcher/message/Item.vue"),
      meta: { title: "消息内容" }
    },
    {
      path: "/sequence",
      name: "sequenceRoot",
      component: () => import("@/views/sequenceSet/Index.vue"),
      meta: { title: "序列管理" }
    },
    {
      path: "/sequence/index",
      name: "sequence",
      component: () => import("@/views/sequenceSet/Index.vue"),
      meta: { title: "序列管理" }
    }
  ]
};
